﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using JMY_Models;
namespace JMY_BLL
{
    public class FileSCBLL:BaseBLL<T_File_Infos_Model>
    {
        private const string _type = "FileSCDAL";
        private JMY_IDAL.FileSCIDAL _DAL;
        public FileSCBLL() : base(_type)
        {
            _DAL = base.Dal as JMY_IDAL.FileSCIDAL;
            if (_DAL==null)
            {
                throw new NullReferenceException(_type);
            }
                
        }
        /// <summary>
        /// 文件导入
        /// </summary>
        /// <param name="m"></param>
        /// <returns></returns>
        public int FileAdd(T_File_Infos_Model m)
        {
            return _DAL.FileAdd(m);
        }
        /// <summary>
        /// 文件显示信息
        /// </summary>
        /// <returns></returns>
        public List<T_File_Infos_Model> GetFileInfos()
        {
            return _DAL.GetFileInfos();
        }
        /// <summary>
        /// 添加医院套餐信息
        /// </summary>
        /// <param name="m"></param>
        /// <returns></returns>
        public int AddComboInfo(T_Doctor_Combo_Model m)
        {
            return _DAL.AddComboInfo(m);
        }

    }
}
